package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"tFilm4/internal/model"
	"tFilm4/internal/model/entity"
)

type CreateMovieHallReq struct {
	g.Meta          `path:"/movieHall/create" method:"post" tags:"MovieHallService" summary:"创建一个新影厅"`
	HallName        string `v:"required#请输入影厅名"`
	HallDescription string `v:"required#请输入影厅描述"`
	Rows            int    `v:"required#请输入影厅座位行数|integer"`
	Cols            int    `v:"required#请输入影厅座位列数|integer"`
	Table           string `v:"required#请输入座位表"`
	TotalCount      int    `v:"required#请输入总座位数"`
	EmptyCount      int    `v:"required#请输入空座位数"`
}
type CreateMovieHallRes struct {
}

type GetHallListReq struct {
	g.Meta    `path:"/movieHall/list" method:"post" tags:"MovieHallService" summary:"获取影厅列表"`
	PageSize  int `v:"required#请输入页大小|integer"`
	PageNum   int `v:"required#请输入页号|integer"`
	SearchKey string
}
type GetHallListRes struct {
	MovieHallInfos []model.MovieHallInfo `json:"list" dc:"影厅列表"`
	MovieHallCount int                   `json:"count" dc:"总条数"`
}

type DelMovieHallReq struct {
	g.Meta `path:"/movieHall/del" method:"post" tags:"MovieHallService" summary:"删除一个影厅"`
	HallId int64 `v:"required#请输入要删除的影厅编号"`
}
type DelMovieHallRes struct{}

type UpdateMovieHallReq struct {
	g.Meta    `path:"/movieHall/update" method:"post" tags:"MovieHallService" summary:"更新一个影厅数据"`
	MovieHall *entity.MovieHall `v:"required#请输入影厅信息"`
	SeatTable *entity.SeatTable `v:"required#请输入影厅座位信息"`
}
type UpdateMovieHallRes struct{}
